package com.dms.modules.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 商品推荐指标实体类
 */
@Data
@Accessors(chain = true)
@TableName("product_recommendation_metrics")
@ApiModel(value = "商品推荐指标实体", description = "商品推荐效果指标信息")
public class ProductRecommendationMetrics {

    @ApiModelProperty("指标ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("推荐类型")
    private String recommendationType;

    @ApiModelProperty("实验分组")
    private String experimentGroup;

    @ApiModelProperty("推荐商品ID列表(JSON)")
    private String recommendedProductIds;

    @ApiModelProperty("点击次数")
    private Integer clickCount;

    @ApiModelProperty("浏览次数")
    private Integer viewCount;

    @ApiModelProperty("停留时长(秒)")
    private Integer stayDuration;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
} 